function SelectView (config){
	
	/** self pointer */
	var _this = this;
	
	this.listDataPath = "/base/list/data";
	
	this.select;
	this.records;
	
	this.init = function(){
		
		var args = config.dataset.split(/\./);
		var catalog = args[0];
		var entity = args[1];
		var entityParam = "?nebula_req_param_catalog="+catalog+"&nebula_req_param_entity="+entity;
		_this.select = $('#'+config.id);
		
		ajaxGet(nebula.basePath + _this.listDataPath + entityParam,{},function(data,status) {
			_this.records = data;
			_this.addOptions();
		});
		
	};
	
	this.addOptions = function(){
		$.each(_this.records, function(i) {
			option = new Option(this[config.label],this[config.value]);
			/*if (i == selected)
				option.selected = true;*/
			_this.select[0].options.add(option);
		});
	};
	
	this.init();
	
}